package day05.system;

public class Lian01 {
    public static void main(String[] args) {
        int[] arr1 = {1, 2, 3, 4};
        int[] arr2 = new int[10];
        System.arraycopy(arr1, 0, arr2, 0, arr1.length);
        for (int i = 0; i < arr2.length; i++) {
            System.out.print(arr2[i] + " ");
        }
        System.out.println();
            System.arraycopy(arr1, 2, arr2, 8, 2);
            for (int j = 0; j < arr2.length; j++) {
                System.out.print(arr2[j]+" ");
            }
        }

}